package com.santos.hw.component;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl implements StudentService {

    private StudenDao studenDao;
    @Autowired
    @Qualifier("studentdaoid")
    public void setStudenDao(StudenDao studenDao) {
        this.studenDao = studenDao;
    }

    @Override
    public void AddStudent()
    {
        studenDao.save();
        System.out.println("Add Sendent service!");
    }
}
